home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
xconq
/
Imakefile
< prev
next >
Wrap
Makefile
|
1995-06-21
|
3KB
|
121 lines
# @(#) Imakefile 12.2 95/06/22
#
# Copyright (C) The Santa Cruz Operation, 1993.
# This Module contains Proprietary Information of
# The Santa Cruz Operation, and should be treated as Confidential.
#
# Copyright (c) 1986 Stanley T. Shebs, University of Utah.
# This program may be used, copied, modified, and redistributed freely
# for noncommercial purposes, so long as this notice remains intact.
# RCS $Header: Makefile,v 1.2 88/07/18 22:06:05 shebs Exp $
# Set this for wherever the library directory should be.
LIBDIR = /usr/skunk/lib/xconq
# Set this for wherever the man page should live.
MANDIR = /usr/skunk/man/man.6
MANSUFFIX = 6
# Set this to be whatever versions you want built by default.
#VERSIONS = cconq xconq x11conq
VERSIONS = x11conq
XFONTPATH = $(LIBDIR)/fonts
# This name sets the default period for xconq. The standard period is based
# on WWII and thus most familiar, although it lacks realism for serious gamers.
PERIOD = standard
# Complete lists of files.
MAINSRC = xconq.c init.c do.c mplay.c move.c attack.c phases.c map.c \
side.c unit.c order.c util.c input.c help.c period.c \
ginit.c draw.c output.c mkmap.c
AUXSRC = per2c.c hexify.c $(PERIOD).c X11.c
INCLUDE = config.h misc.h side.h unit.h map.h dir.h period.h global.h version.h
# Non-interface-specific object files.
SRCS = $(MAINSRC) $(AUXSRC)
OBJS = xconq.o init.o do.o mplay.o move.o attack.o phases.o map.o mkmap.o \
side.o unit.o order.o input.o help.o period.o \
ginit.o draw.o output.o $(PERIOD).o util.o X11.o
# Optimization is pretty feeble, but do it anyway.
#CC = rcc
CC = cc
#DEFINES = -O -DXCONQLIB=\"$(LIBDIR)\"
DEFINES = -DXCONQLIB=\"$(LIBDIR)\" -DXFONTPATH=\"$(XFONTPATH)\"
LOCAL_LIBRARIES = $(XLIB)
SYS_LIBRARIES = -lx
# Do it all.
ComplexProgramTarget(x11conq)
all:: X11fonts
# There is always a default period compiled into the code.
$(PERIOD).c:: Lib/$(PERIOD).per per2c
-rm -f $(PERIOD).c
./per2c <Lib/$(PERIOD).per >$(PERIOD).c
# Support things.
per2c:: per2c.o period.o
$(CC) -o per2c $(CFLAGS) per2c.o period.o
hexify:: hexify.o
$(CC) -o hexify $(CFLAGS) hexify.o
xconq.6:: Doc/xconq.ms
(cd Doc; nroff -ms xconq.ms > ../xconq.6)
xconq_custom.6:: Doc/custom.ms
(cd Doc; nroff -ms custom.ms > ../xconq_custom.6)
# Installation requires programs in $(DESTDIR) and a library directory.
# Also, fonts might have to go in system's font directory.
# No standard place for formatted docs, you're on your own...
install:: all xconq.6 xconq_custom.6
-mkdir -p $(DESTDIR)/$(LIBDIR)
(cd Lib; cp *.map *.scn *.per mapfiles xconq.news $(DESTDIR)/$(LIBDIR))
(cd Lib/Bitmaps; cp * $(DESTDIR)/$(LIBDIR))
-mkdir -p $(DESTDIR)/$(XFONTPATH)
(cd Lib;cp *.pcf $(DESTDIR)/$(XFONTPATH);mkfontdir $(DESTDIR)/$(XFONTPATH))
-mkdir -p $(DESTDIR)/usr/skunk/man/cat.6
cp *.6 $(DESTDIR)/usr/skunk/man/cat.6
# Usual cleaning, and flushing of anything junk-like.
clean::
rm -f per2c hexify *.o lint.out core
spotless:: clean
rm -f *conq *.6 $(PERIOD).c
# Pretty output for your favorite fancy printer.
TROFFER = psroff
PRINTER = csps
paper::
$(TROFFER) -man -P$(PRINTER) *.6
$(TROFFER) -ms -P$(PRINTER) xconq.ms
$(TROFFER) -ms -P$(PRINTER) custom.ms
X11fonts::
(cd Lib; /usr/bin/X11/bdftopcf xconq.bdf >xconq.pcf; /usr/bin/X11/bdftopcf standard.bdf >standard.pcf)